import request from '@/utils/request'
//获取操作库区新增
export function informationAddOperation(query) {
  return request({
    url: '/ncc/basic/stoArea',
    method: 'post',
    data: query
  })
}
//获取操作货位
export function locationOperation(query) {
  return request({
    url: '/basic/stoUnit/findBasicStoUnit',
    method: 'get',
    params: query
  })
}
//操作货位新增
export function locationAddOperation(query) {
  return request({
    url: '/stoUnit',
    method: 'post',
    data: query
  })
}
//操作货位打印按钮
export function printStoUnit(query) {
  return request({
    url: '/basic/stoUnit/printStoUnit',
    method: 'post',
    data: query
  })
}
//操作货位修改
export function locationEditOperation(query) {
  return request({
    url: '/stoUnit',
    method: 'put',
    data: query
  })
}
//批量货位删除
export function batchDeleteByStoUnitId(query) {
  return request({
    url: '/basic/stoUnit/batchDeleteByStoUnitId',
    method: 'delete',
    data: query
  })
}
//货位单独删除
export function deleteByStoUnitId(query) {
  return request({
    url: '/basic/stoUnit/deleteByStoUnitId',
    method: 'delete',
    params: query
  })
}
//获取货位编码
export function basicStoShelf(query) {
  return request({
    url: '/basicStoShelf',
    method: 'get',
    params: query
  })
}
//货位类型新增
export function addBasicStoShelf(query) {
  return request({
    url: '/basicStoShelf',
    method: 'post',
    data: query,
  })
}
//货位类型修改
export function editBasicStoShelf(query) {
  return request({
    url: '/basicStoShelf',
    method: 'put',
    data: query,
  })
}
//货位类型删除
export function deleteBasicStoShelf(query) {
  return request({
    url: '/basicStoShelf/' + query,
    method: 'delete',
  })
}
//货位层位数续增下拉select接口
export function getAllStoUnitCode(query) {
  return request({
    url: '/stoUnit/getAllStoUnitCode',
    method: 'get',
    params: query
  })
}
//货位层位数提交接口
export function addStoUnitStorage(query) {
  return request({
    url: '/stoUnit/addStoUnitStorage',
    method: 'post',
    data: query
  })
}
//操作货位批量修改状态
export function updateBasicStoUnitEnableStatusAll(query, params) {
  return request({
    url: '/basic/stoUnit/updateBasicStoUnitEnableStatusAll',
    method: 'put',
    data: query,
    params: params
  })
}
//操作货位单独状态修改
export function updateBasicStoUnitEnableStatus(query) {
  return request({
    url: '/basic/stoUnit/updateBasicStoUnitEnableStatus',
    method: 'put',
    params: query,
  })
}
//银杏林
//库区新增接口
export function addStoArea(query) {
  return request({
    url: '/basic/stoArea/addStoArea',
    method: 'post',
    data: query,
  })
}
//库区修改状态
export function updateState(query) {
  return request({
    url: '/basic/stoArea/updateState',
    method: 'put',
    params: query
  })
}
//库区修改接口
export function updateStoArea(query) {
  return request({
    url: '/basic/stoArea/updateStoArea',
    method: 'post',
    data: query,
  })
}
//库区删除
export function deleteStoArea(query) {
  return request({
    url: '/basic/stoArea/deleteStoArea',
    method: 'delete',
    params: query,
  })
}
